package com.bajie.bjlisten.api;


import com.bajie.bjlisten.entity.response.EBookResult;
import com.bajie.bjlisten.entity.response.EBookShelfResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestParam;

@Api(value = "小说", description = "小说查询接口")
public interface EBookControllerApi {
   /* @ApiOperation("小说基本信息")
    public EBookResult getEBook();

    @ApiOperation("小说章节列表")
    public List getChapters(String eBookId);

    @ApiOperation("根据章节查询对应内容")
    public JSONObject getContent(String chapterId);

    @ApiOperation("根据小说id查询对应章节id与章节名")
    public Map<String,Object> getChapterIdAndChapterName(String eBookId);

    @ApiOperation("点击小说，根据小说id获取该本小说相关信息")
    public Map<String,Object> getEBookContent(String eBookId);

    @ApiOperation("随机推荐多本小说")
    public List getRandomNovels(Integer num);

    @ApiOperation("八戒热推")
    public List getBjHotNovels(Integer bjNum);*/

    @ApiOperation("删除书架")
    public EBookShelfResult deleteByEbookIdAndUserId(String userId, String ebookId);

    @ApiOperation("加入书架")
    public EBookShelfResult putIntoBookShelf(String userId, String ebookId);

    @ApiOperation("根据用户查询书架")
    public EBookResult findBookShelfsByUserId(String userId,Integer offset,Integer limit);

    @ApiOperation("猜你喜欢")
    public EBookResult findAllGuess(String userId,  Integer offset,Integer limit);

    @ApiOperation("八戒热推")
    public EBookResult findAllByPop(String userId,Integer offset,Integer limit);
    @ApiOperation("连载更新")
    public EBookResult findBookByupdateTime(String userId,Integer offset,Integer limit);

    @ApiOperation("最新排行")
    public EBookResult findNewSort(String userId,Integer offset,Integer limit);

    @ApiOperation("小说详情")
    public EBookResult findByBookId(String userId,String ebookId);

    @ApiOperation("查询目录章节")
    public EBookShelfResult findChapterByEBookId(String ebookId);

    @ApiOperation("同类推荐")
    public EBookResult findCategoryByRandBookId(String categoryId,Integer offset,Integer limit);

    }
